angular.module('start.common.article.ctrl', [])

  .controller('ArticleCtrl', function($scope, $stateParams, $$ArticleService, $ionicLoading) {
    console.log("ArticleCtrl");
    $scope.article = {};
    $$ArticleService.getArticleById($stateParams.articleId)
      .then(function(res) {
        console.log(res);
        $scope.article = res.data;
      });
  });
